// use post::Post;

// fn main() {
//     let mut post_con = Post::new();
//     post_con.add_text("I ate a salad for lunch today");
//     //let post_con = post_con.request_review();
//     post_con.request_review();
//     let post_con = post_con.approve();
//     assert_eq!("I ate a salad for lunch today", post_con.content());
// }

mod animals;

use animals::animals::{Animal, Dog, Cat};

fn main(){
   
   let mut dog= Dog::new(String::from("小虎"));
   let mut cat= Cat::new(String::from("小白"));
   dog.run();
   cat.run();
   dog.sleep();
   cat.sleep();
   dog.run();
   cat.run();
   //
   dog.wakeup();
   cat.wakeup();

   let fish=String::from("骨头");
   dog.eat(&fish);
   cat.eat(&fish);

   let bone=String::from("鱼");
   dog.eat(&bone);
   cat.eat(&bone);
}